<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="YetkiCreateDlg" widgetVar="YetkiCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateYetkiTitle}">

            <h:form id="YetkiCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{yetkiController.selected != null}">

                        <p:outputLabel value="#{bundle.CreateYetkiLabel_yetkiSeviye}" for="yetkiSeviye" />
                        <p:inputText id="yetkiSeviye" value="#{yetkiController.selected.yetkiSeviye}" title="#{bundle.CreateYetkiTitle_yetkiSeviye}" required="true" requiredMessage="#{bundle.CreateYetkiRequiredMessage_yetkiSeviye}"/>

                        <p:outputLabel value="#{bundle.CreateYetkiLabel_yetkiAdi}" for="yetkiAdi" />
                        <p:inputText id="yetkiAdi" value="#{yetkiController.selected.yetkiAdi}" title="#{bundle.CreateYetkiTitle_yetkiAdi}" required="true" requiredMessage="#{bundle.CreateYetkiRequiredMessage_yetkiAdi}"/>

                        <p:outputLabel value="#{bundle.CreateYetkiLabel_yetkiAciklama}" for="yetkiAciklama" />
                        <p:inputText id="yetkiAciklama" value="#{yetkiController.selected.yetkiAciklama}" title="#{bundle.CreateYetkiTitle_yetkiAciklama}" required="true" requiredMessage="#{bundle.CreateYetkiRequiredMessage_yetkiAciklama}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{yetkiController.saveNew}" value="#{bundle.Save}" update="display,:YetkiListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,YetkiCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="YetkiCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
